import Vuex from 'vuex';
// import drugStore from './modules/drugStore/index';
import articles from './modules/articles/index';

import defaultState from './state/state';
import mutations from './mutations/mutations';
import getters from './getters/getters';
import actions from './actions/actions';

const isDev = process.env.NODE_ENV === 'development';

export default () => {
  const store = new Vuex.Store({
    strict: isDev,
    namespaced: true,
    state: defaultState,
    mutations,
    getters,
    actions,
    modules: {
      articles,
      // actions,
      // course
    },
  });
  return store;
};
